import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import store from './store'
import * as filters from './filters'
import locale from 'element-ui/lib/locale/lang/zh-CN'
import 'element-ui/lib/theme-chalk/index.css'
import jquery from 'jquery'
import './permission'

import * as d3 from "d3";

Object.keys(filters).forEach(key => {
  Vue.filter(key,filters[key])
})

Vue.config.productionTip = false

Vue.use(ElementUI,{locale})
Vue.prototype.$jquery = jquery
Vue.prototype.d3 = d3;

new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})